package com.cauli.account.login.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.cauli.account.login.model.dto.LoginDTO;
import com.cauli.account.login.model.dto.RegisterDTO;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Cauli
 * @date 2022/12/13 10:04
 * @description 登录 服务类
 */
public interface LoginService {
    /**
     * 登录
     *
     * @param request
     * @param loginDTO
     * @return
     */
    SaTokenInfo login(HttpServletRequest request, LoginDTO loginDTO);

    /**
     * 注册
     *
     * @param registerDTO
     * @return
     */
    void register(RegisterDTO registerDTO);
}
